<?php

namespace App\Providers;

use Illuminate\Support\Facades\Gate;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;

class AuthServiceProvider extends ServiceProvider
{
    /**
     * The policy mappings for the application.
     *
     * @var array
     */
    protected $policies = [
		 \App\Models\FeedBack::class => \App\Policies\FeedBackPolicy::class,
		 \App\Models\ViewCount::class => \App\Policies\ViewCountPolicy::class,
		 \App\Models\ShortUrl::class => \App\Policies\ShortUrlPolicy::class,
		 \App\Models\Domain::class => \App\Policies\DomainPolicy::class,
		\App\Models\Notice::class => \App\Policies\NoticePolicy::class,
        \App\Models\Ad::class => \App\Policies\AdPolicy::class,
        \App\Models\Site::class => \App\Policies\SitePolicy::class,
        \App\Models\User::class => \App\Policies\MemberPolicy::class,
        \App\Models\Video::class => \App\Policies\VideoPolicy::class,
        'App\Model' => 'App\Policies\ModelPolicy',
    ];

    /**
     * Register any authentication / authorization services.
     *
     * @return void
     */
    public function boot()
    {
        $this->registerPolicies();

        //
    }
}
